﻿<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  h1, h2 {
    font-weight: normal;
  }
  ul {
    list-style-type: none;
    padding: 0;
  }
  li {
    display: inline-block;
    margin: 0 10px;
  }
  a {
    color: #42b983;
  }
</style>

<template>
  <div class="contain">
      <router-view></router-view>
</div>
</template>
<script>
import '../../../static/css/reset.css'
import MintUI from 'mint-ui'
import Vue from "vue"
import ScrollView from 'vue-scrollview'
import  "../../../static/css/container/container.css"
import '../../../static/css/mint-ui/style.css'
import VueScroller from 'vue-scroller'
/*iscroll s*/
import N_Iscroll from "iscroll";
/*iscroll e*/
import useRem from '../../../static/js/use_rem.js';
Vue.use(MintUI);
Vue.use(VueScroller)
useRem();
  import axios from 'axios'
  axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8'
  Vue.prototype.$http = axios

  // 注册一个全局自定义指令 v-focus
  Vue.directive('focus', {
    // 当绑定元素插入到 DOM 中。
    inserted: function (el) {
      // 聚焦元素
      el.focus()
    }
  })
  Vue.directive('focus_ud', {
    // 当绑定元素插入到 DOM 中。  
    update: function (el, binding) {
      // 聚焦元素
      if (binding.value == true) {
        el.focus()
      } else {
        el.blur()
      }
        
      }
  });  
 
export default {
  name: 'hello',
  data () {
    return {

    }
  },
  components: {

  }
}
</script>


